/*
 * The Settler class represents a member of the player's party.
 * 
 * @author CS 2340 Team 29 - It's a Trap
 * @version 1.0 10/10/11
 */
public class Settler{
	private String ration, name;
	private Condition condition;
	private enum Condition{HEALTHY, ILL, DEAD};
	
	/*
	 * Constructor for the Settler class
	 * 
	 * @param ration The desired rationing for the settler
	 * @param name The desired name for the played
	 */
	public Settler(String ration, String name){
		this.ration = ration;
		this.name = name;
		this.condition = Condition.HEALTHY;
	}
	
	/*
	 * Sets the settler's ration
	 * 
	 * @param ration The desired rationing for the player
	 */
	public void setRation(String ration){
		this.ration = ration;
	}
	
	/*
	 * Sets the settler's name
	 * 
	 * @param name The desired name for the player
	 */
	public void setName(String name){
		this.name = name;
	}
	
	/*
	 * Gets the settler's ration
	 * @return The player's rationing
	 */
	public String getRation(){
		return ration;
	}
	
	/*
	 * Gets the settler's name
	 * @return The player's name
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * Sets the settler's condition to ill
	 */
	public void settlerIll(){
		this.condition = Condition.ILL;
	}
	
	
	/**
	 * Sets the settler's condition to dead
	 */
	public void settlerDead(){
		this.condition = Condition.DEAD;
	}
}
